package com.anycl.design.structural.flyweight;

/**
 * 抽象享元角色
 */
public abstract class Flyweight {

    private String intrinsic; // 内部状态

    protected final String extrinsic;  // 外部状态

    public Flyweight(String extrinsic) {
        this.extrinsic = extrinsic;
    }

    public abstract void operate();

    public String getIntrinsic() {
        return intrinsic;
    }

    public void setIntrinsic(String intrinsic) {
        this.intrinsic = intrinsic;
    }

}
